const obj = {
  name: "John",
  age: 30,
  city: "New York",
};

const obj2 = { ...obj };
console.log("obj: ", obj);
console.log("obj2: ", obj2);
